package com.suneee.channel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suneee.channel.dao.ChannelDao;
import com.suneee.channel.entity.Channel;
import com.suneee.channel.service.ChannelService;

@Service("api-channel")
public class ChannelServiceImpl implements ChannelService {

	@Autowired
	private ChannelDao channelDao;

	@Override
	public List<Channel> listChannel() {
		return channelDao.listChannel();
	}

	@Override
	public Channel getChannel(String channelCode) {
		return channelDao.getChannelByChannelCode(channelCode);
	}

}